home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / Vk / VkOlNode.z / VkOlNode
Encoding:
Text File  |  2002-10-03  |  7.1 KB  |  265 lines

  1.  
  2.  
  3.  
  4. VVVVkkkkOOOOllllNNNNooooddddeeee((((3333xxxx))))                                                      VVVVkkkkOOOOllllNNNNooooddddeeee((((3333xxxx))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      VkOlNode - A utility class used by VkOutline
  10.  
  11. HHHHEEEEAAAADDDDEEEERRRR FFFFIIIILLLLEEEE
  12.      #include <Vk/VkOutline.h>
  13.  
  14. PPPPUUUUBBBBLLLLIIIICCCC PPPPRRRROOOOTTTTOOOOCCCCOOOOLLLL SSSSUUUUMMMMMMMMAAAARRRRYYYY
  15.    CCCCoooonnnnssssttttrrrruuuuccccttttoooorrrr////DDDDeeeessssttttrrrruuuuccccttttoooorrrr
  16.            VkOlNode (char *name);
  17.            VkOlNode (char *name, void* data);
  18.            VkOlNode (char *name, char* key, void* data);
  19.  
  20.            virtual void ~VkOlNode(void);
  21.  
  22.  
  23.    PPPPuuuubbbblllliiiicccc MMMMeeeemmmmbbbbeeeerrrr FFFFuuuunnnnccccttttiiiioooonnnnssss
  24.            void      addChild (VkOlNode* child);
  25.            void      removeChild (VkOlNode* child);
  26.            VkOlNode* pathToNode (char** path);
  27.            XmString  name ();
  28.            char*     key ();
  29.            void*     getHook ();
  30.            int       nchild ();
  31.            VkOlNode* child (int);
  32.            void      setParent (VkOlNode*);
  33.            VkOlNode* getParent ();
  34.            int       isOpen ();
  35.            void      Open ();
  36.            void      Close ();
  37.  
  38.  
  39. CCCCLLLLAAAASSSSSSSS DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  40.      The VkOlNode is an utility class for VkOutline, VkOutlineASB components.
  41.      In addition to being helpful as a node in the outline tree, it provides
  42.      ways for outline components to manage opening, closing, display attribute
  43.      setting and searching. Some public methods documented here can be used by
  44.      derived class implementors for VkOutline, VkOutlineASB. They can also be
  45.      helpful to users of VkOutline::walkAllKeywords. A VkOlNode has a display
  46.      string (name), a key used in searching and a hook - user defined opaque
  47.      data pointer. It also maintains display status and attributes.
  48.  
  49. FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNNSSSS
  50.    VVVVkkkkOOOOllllNNNNooooddddeeee(((())))
  51.            VkOlNode(char* name);
  52.  
  53.  
  54.           Instantiate a VkOlNode object given its name. The key is same as
  55.           name.  Data pointer is initialized to NULL.
  56.  
  57.    VVVVkkkkOOOOllllNNNNooooddddeeee(((())))
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. VVVVkkkkOOOOllllNNNNooooddddeeee((((3333xxxx))))                                                      VVVVkkkkOOOOllllNNNNooooddddeeee((((3333xxxx))))
  71.  
  72.  
  73.  
  74.            VkOlNode(char* name, char* key);
  75.  
  76.  
  77.           Instantiate a VkOlNode object given its name and key. Data pointer
  78.           is initialized to NULL.
  79.  
  80.    VVVVkkkkOOOOllllNNNNooooddddeeee(((())))
  81.            VkOlNode(char* name, char* key, void* data);
  82.  
  83.  
  84.           Instantiate a VkOlNode object given its name, key and data pointer.
  85.  
  86.    ~~~~VVVVkkkkOOOOllllNNNNooooddddeeee(((())))
  87.            virtual void ~VkOlNode(void);
  88.  
  89.  
  90.           Destroy a VkOlNode object after deleting all its children.
  91.  
  92.    aaaaddddddddCCCChhhhiiiilllldddd(((())))
  93.            void      addChild (VkOlNode* child);
  94.  
  95.  
  96.           Add the given child to list of children in the node.
  97.  
  98.    rrrreeeemmmmoooovvvveeeeCCCChhhhiiiilllldddd(((())))
  99.            void      removeChild (VkOlNode* child);
  100.  
  101.  
  102.           Remove the given child to list of children in the node.
  103.  
  104.    ppppaaaatttthhhhTTTTooooNNNNooooddddeeee(((())))
  105.            VkOlNode* pathToNode (char** path);
  106.  
  107.  
  108.           Parameter path is an array of strings with the last one NULL.
  109.           Returns a node corresponding to the path relative to the node, by
  110.           traversing the node's child hierarchy.
  111.  
  112.    nnnnaaaammmmeeee(((())))
  113.            XmString  name ();
  114.  
  115.  
  116.           Returns the name given while instantiating the node.
  117.  
  118.    kkkkeeeeyyyy(((())))
  119.            char*     key ();
  120.  
  121.  
  122.           Returns the key corresponding to the node.
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. VVVVkkkkOOOOllllNNNNooooddddeeee((((3333xxxx))))                                                      VVVVkkkkOOOOllllNNNNooooddddeeee((((3333xxxx))))
  137.  
  138.  
  139.  
  140.    ggggeeeettttHHHHooooooookkkk(((())))
  141.            void*     getHook ();
  142.  
  143.  
  144.           Returns the data pointer corresponding to the node.
  145.  
  146.    nnnncccchhhhiiiilllldddd(((())))
  147.            int       nchild ();
  148.  
  149.  
  150.           Returns the number of children in the node.
  151.  
  152.    cccchhhhiiiilllldddd(((())))
  153.            VkOlNode* child (int i);
  154.  
  155.  
  156.           Returns the i'th child node.
  157.  
  158.    sssseeeettttPPPPaaaarrrreeeennnntttt(((())))
  159.            void      setParent (VkOlNode* parent);
  160.  
  161.  
  162.           Sets a given node as its parent.
  163.  
  164.    ggggeeeettttPPPPaaaarrrreeeennnntttt(((())))
  165.            VkOlNode* getParent ();
  166.  
  167.  
  168.           Returns the parent of the node.
  169.  
  170.    iiiissssOOOOppppeeeennnn(((())))
  171.            int       isOpen ();
  172.  
  173.  
  174.           Returns whether the node is open, i.e., whether its children are
  175.           displayed.
  176.  
  177.    OOOOppppeeeennnn(((())))
  178.            void      Open ();
  179.  
  180.  
  181.           Takes the node to open state, i.e., its children will be
  182.           displayable.
  183.  
  184.    CCCClllloooosssseeee(((())))
  185.            void      Close ();
  186.  
  187.  
  188.           Takes the node to closed state, i.e., its children will not be
  189.           displayable.
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. VVVVkkkkOOOOllllNNNNooooddddeeee((((3333xxxx))))                                                      VVVVkkkkOOOOllllNNNNooooddddeeee((((3333xxxx))))
  203.  
  204.  
  205.  
  206. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  207.      VkOutline, VkOutlineASB
  208.      _V_i_e_w_K_i_t _P_r_o_g_r_a_m_m_e_r'_s _G_u_i_d_e
  209.      _T_h_e _X _W_i_n_d_o_w _S_y_s_t_e_m, DEC Press, Bob Sheifler and Jim Gettys
  210.      _T_h_e _X _W_i_n_d_o_w _S_y_s_t_e_m _T_o_o_l_k_i_t, DEC Press, Paul Asente and Ralph Swick
  211.      _T_h_e _O_S_F/_M_o_t_i_f _P_r_o_g_r_a_m_m_e_r_s _R_e_f_e_r_e_n_c_e, Prentice Hall, OSF
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.